<template>
	<view class="MaskAlert" v-if="serverStore.flagshow" @click.stop="alertflag">
		<view class="alerts" @click.stop="null">
			<slot></slot>
		</view>
	</view>
</template>

<script setup>
	import {
		useServerStore
	} from '../stores/serverStore';
	import {
		ref
	} from 'vue'
	const serverStore = useServerStore()
	const alertflag = () => {
		serverStore.flagshow = false
	}
</script>

<style lang="scss">
	.MaskAlert {
		width: 100vw;
		height: 100vh;
		background-color: rgba(0, 0, 0, 0.4);
		position: absolute;
		top: 0;
		left: 0;

		.alerts {
			width: calc(100% - 80rpx);
			padding: 40rpx;
			background-color: white;
			position: absolute;
			bottom: 0;
			border-radius: 10px 10px 0px 0px;
		}
	}
</style>